package com.yzhl.batch_sync.controller;

import com.yzhl.batch_sync.service.SyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wangzu
 * @date 2018/10/11
 */
@RestController
public class BatchSyncController {

    @Autowired
    SyncService syncService;

    @RequestMapping("/syncPassport")
    public Object syncPassport() {
        syncService.syncPassport();
        return "success";
    }

    @RequestMapping("/syncStatistics")
    public Object syncStatistics() {
        syncService.syncStatistics();
        return "success";
    }
}
